package artid.com.arttogoa.parser;

import java.io.Serializable;

import org.json.JSONObject;

/**
 * 
*    
* 项目名称：ArtworkArtA   
* 类名称   ：ReplyParser   
* 类描述   ：艺术家回复列表实体类+解析  
* 创建人   ：耿卫斌   
* 创建时间：2016-5-20 下午4:36:05   
*
 */
public class ReplyParser extends AppItem implements Serializable{
	private static final long serialVersionUID = 1L;
	private String com_id;//用户评论id
	private String com_art_id;//艺术品id
	private String cover_id;//艺术品图片id
	private String title;//艺术品名称
	private String com_uid;//用户的uid
	private String com_create_time;//用户评论的时间
	private String com_content;//用户评论的内容
	private String com_to_comment;//回复用户评论id
	private String com_status;//用户评论的状态
	private String Id;//艺术家回复的评论id
	private String art_id;
	private String uid;
	private String create_time;
	private String content;
	private String to_comment_id;
	private String status;
	private String realname;
	private String imgurl;
	private String pic_url;
	@Override
	public void parse(JSONObject obj) {
		// TODO Auto-generated method stub
		if (null == obj) {
			return;
		}
		com_id = obj.optString("com_id");
		com_art_id = obj.optString("com_art_id");
		cover_id = obj.optString("cover_id");
		title = obj.optString("title");
		com_uid = obj.optString("com_uid");
		com_create_time = obj.optString("com_create_time");
		com_content = obj.optString("com_content");
		com_to_comment = obj.optString("com_to_comment");
		com_status = obj.optString("com_status");
		Id = obj.optString("Id");
		art_id = obj.optString("art_id");
		uid = obj.optString("uid");
		create_time = obj.optString("create_time");
		content = obj.optString("content");
		to_comment_id = obj.optString("to_comment_id");
		status = obj.optString("status");
		realname = obj.optString("realname");
		imgurl = obj.optString("imgurl");
		pic_url = obj.optString("pic_url");
	}
	public String getCom_id() {
		return com_id;
	}
	public void setCom_id(String com_id) {
		this.com_id = com_id;
	}
	public String getCom_art_id() {
		return com_art_id;
	}
	public void setCom_art_id(String com_art_id) {
		this.com_art_id = com_art_id;
	}
	public String getCover_id() {
		return cover_id;
	}
	public void setCover_id(String cover_id) {
		this.cover_id = cover_id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getCom_uid() {
		return com_uid;
	}
	public void setCom_uid(String com_uid) {
		this.com_uid = com_uid;
	}
	public String getCom_create_time() {
		return com_create_time;
	}
	public void setCom_create_time(String com_create_time) {
		this.com_create_time = com_create_time;
	}
	public String getCom_content() {
		return com_content;
	}
	public void setCom_content(String com_content) {
		this.com_content = com_content;
	}
	public String getCom_to_comment() {
		return com_to_comment;
	}
	public void setCom_to_comment(String com_to_comment) {
		this.com_to_comment = com_to_comment;
	}
	public String getCom_status() {
		return com_status;
	}
	public void setCom_status(String com_status) {
		this.com_status = com_status;
	}
	public String getId() {
		return Id;
	}
	public void setId(String id) {
		Id = id;
	}
	public String getArt_id() {
		return art_id;
	}
	public void setArt_id(String art_id) {
		this.art_id = art_id;
	}
	public String getUid() {
		return uid;
	}
	public void setUid(String uid) {
		this.uid = uid;
	}
	public String getCreate_time() {
		return create_time;
	}
	public void setCreate_time(String create_time) {
		this.create_time = create_time;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getTo_comment_id() {
		return to_comment_id;
	}
	public void setTo_comment_id(String to_comment_id) {
		this.to_comment_id = to_comment_id;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getRealname() {
		return realname;
	}
	public void setRealname(String realname) {
		this.realname = realname;
	}
	public String getImgurl() {
		return imgurl;
	}
	public void setImgurl(String imgurl) {
		this.imgurl = imgurl;
	}
	public String getPic_url() {
		return pic_url;
	}
	public void setPic_url(String pic_url) {
		this.pic_url = pic_url;
	}
	public ReplyParser() {
		super();
	}
	public ReplyParser(String com_id, String com_art_id, String cover_id,
			String title, String com_uid, String com_create_time,
			String com_content, String com_to_comment, String com_status,
			String id, String art_id, String uid, String create_time,
			String content, String to_comment_id, String status,
			String realname, String imgurl, String pic_url) {
		super();
		this.com_id = com_id;
		this.com_art_id = com_art_id;
		this.cover_id = cover_id;
		this.title = title;
		this.com_uid = com_uid;
		this.com_create_time = com_create_time;
		this.com_content = com_content;
		this.com_to_comment = com_to_comment;
		this.com_status = com_status;
		Id = id;
		this.art_id = art_id;
		this.uid = uid;
		this.create_time = create_time;
		this.content = content;
		this.to_comment_id = to_comment_id;
		this.status = status;
		this.realname = realname;
		this.imgurl = imgurl;
		this.pic_url = pic_url;
	}
	@Override
	public String toString() {
		return "ReplyParser [com_id=" + com_id + ", com_art_id=" + com_art_id
				+ ", cover_id=" + cover_id + ", title=" + title + ", com_uid="
				+ com_uid + ", com_create_time=" + com_create_time
				+ ", com_content=" + com_content + ", com_to_comment="
				+ com_to_comment + ", com_status=" + com_status + ", Id=" + Id
				+ ", art_id=" + art_id + ", uid=" + uid + ", create_time="
				+ create_time + ", content=" + content + ", to_comment_id="
				+ to_comment_id + ", status=" + status + ", realname="
				+ realname + ", imgurl=" + imgurl + ", pic_url=" + pic_url
				+ "]";
	}

}
